body {
  position: relative;
  width: 100%;
  min-width: 500px;
  max-width: 720px;
  margin: 0 auto;
  color: rgb(116, 116, 116);
}

// 头部
header {
  .headerPublicStyle(@imgsize) {
    width: 12.5%;
    height: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    img {
      height: @imgsize /* 45px -> .45rem */;
      width: @imgsize /* 45px -> .45rem */;
    }
  }
  position: fixed;
  top: 0;
  z-index: 3;
  height: 1.4rem;
  width: 7.2rem /* 720px -> 7.2rem */;

  background-color: #f2f2f2;
  box-shadow: 0 4px 5px rgba(190, 190, 190, 0.3);
  .header-input {
    height: 55%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    .input-left {
      .headerPublicStyle(0.5rem);
    }
    .input-center {
      border-radius: 0.05rem /* 5px -> .05rem */;
      background-color: rgb(255, 255, 255);
      border: 0.5px solid #dddddd;
      display: flex;
      align-items: center;
      width: 75%;
      height: 80%;
      .input-center-img {
        .headerPublicStyle(0.4rem);
      }
      .input-center-text {
        font-weight: 400;
        font-size: 0.3rem /* 36px -> .36rem */;
        color: rgba(0, 0, 0, 0.3);
        line-height: 0.56rem /* 56px -> .56rem */;
      }
    }
    .input-right {
      .headerPublicStyle(0.38rem);
    }
  }
  .header-tab {
    height: 45%;
    width: 100%;
    display: flex;
    ul {
      margin: auto;
      width: 75%;
      display: flex;
      li {
        height: 100%;
        line-height: 0.66rem /* 56px -> .56rem */;
        width: 20%;
        // color: #dddddd;
        font-size: 0.26rem;
      }
    }
    i {
      font-weight: 800;
      line-height: 0.76rem /* 56px -> .56rem */;
      color: #b6b6b6;
      width: 5%;
      margin-right: 0.2rem /* 20px -> .2rem */;
      font-size: 0.22rem /* 36px -> .36rem */;
    }
  }
}
// 轮播
.swiper-box {
  margin-top: 1.4rem;
  height: 3.6rem /* 450px -> 4.5rem */;
  width: 100%;
  background-color: #b6b6b6;
  position: relative;
  .swiper {
    width: 100%;
    height: 100%;
  }

  .swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .swiper-pagination-bullet-active {
    background: #fff;
  }
}

// 图标导航
nav {
  padding: 0rem /* 20px -> .2rem */ 0.1rem /* 20px -> .2rem */;
  width: 100%;
  height: 3rem /* 450px -> 4.5rem */;
  display: flex;
  flex-wrap: wrap;
  img {
    width: 20%;
    height: 50%;
  }
}

// 图片购物
article {
  border-bottom: 0.15rem solid rgb(245, 245, 245);
  border-top: 0.15rem solid rgb(245, 245, 245);

  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  section {
    width: 49%;
    height: 5.1rem /* 200px -> 2rem */;
    background-color: #fff;
    text-align: center;

    img {
      height: 58%;
      margin-bottom: 0.13rem /* 10px -> .1rem */;
    }
    h3 {
      font-size: 0.25rem /* 23px -> .23rem */;
      color: #000000;
    }
    h4 {
      font-size: 0.23rem /* 23px -> .23rem */;
      margin-bottom: 0.04rem /* 10px -> .1rem */;
    }
    p {
      font-size: 0.24rem /* 23px -> .23rem */;
      color: #f15f5f;
      margin-bottom: 0.07rem /* 10px -> .1rem */;
      font-weight: 500;
    }
    button {
      font-size: 0.23rem /* 23px -> .23rem */;
      background-color: #f15f5f;
      color: #fff;
      width: 2rem; /* 100px -> 1rem */
      height: 0.58rem /* 30px -> .3rem */;
      border: none;
      border-radius: 0.05rem /* 10px -> .1rem */;
      font-weight: 600;
    }
  }
  .nav-footer {
    height: 1rem /* 50px -> .5rem */;
    text-align: center;
    width: 100%;
    line-height: 1rem;
    font-size: 0.25rem /* 23px -> .23rem */;
    i {
      vertical-align: middle;
      font-size: 0.3rem /* 20px -> .2rem */;
      color: #b8b8b8;
      font-weight: 100;
      margin-right: 0.1rem /* 10px -> .1rem */;
    }
  }
}

//了解按钮
.most-xiaomi {
  width: 100%;
  margin-bottom: 0.9rem;
  button {
    // display: flex;
    // align-items: center;
    // justify-content: center;
    width: 100%;
    font-size: 0.28rem /* 23px -> .23rem */;
    color: #6d6d6d;
    height: 1.08rem /* 30px -> .3rem */;
    border: none;
    border-radius: 0.05rem /* 10px -> .1rem */;
    background-color: #fff;
    border-bottom: 0.2rem /* 20px -> .2rem */ solid #f6f6f6;
    i {
      vertical-align: middle;
      font-size: 0.35rem /* 20px -> .2rem */;
      color: #b8b8b8;
      font-weight: 100;
      margin-right: 0.1rem /* 10px -> .1rem */;
    }
  }
}
footer {
  height: 0.9rem; /* 30px -> .3rem */
  width: 7.2rem /* 720px -> 7.2rem */;
  position: fixed;
  bottom: 0;
  background-color: #ffffff;
  box-shadow: 0 -4px 8px rgba(190, 190, 190, 0.3); /* 阴影偏移和模糊 */
  display: flex;
  .footer-item {
    width: 20%;
    text-align: center;
    font-size: 0.22rem /* 20px -> .2rem */;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    img {
      width: 30px /* 20px -> .2rem */;
      height: 30px;
      margin-bottom: 0.05rem /* 20px -> .2rem */;
    }
  }
}
